package com.memory.modules.business.service.user;

import com.memory.modules.business.domain.user.Account;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;
import java.util.Optional;

public interface AccountService {
    Account create(Account account);

    Account modify(Long id, Account account);

    Account remove(Long id);

    Account findByOpenId(String openId);

    Optional<Account> findById(Long id);

    Page<Account> findPage(Example<Account> example);

    List<Account> findList(Example<Account> example);
}
